/* 全局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 56px; /* 为固定导航栏留出空间 */
}

main {
    flex: 1;
    padding: 1rem 0;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* 图表容器样式 */
.chart-container {
    min-height: 400px;
    width: 100%;
}

/* 数据概览卡片 */
.overview-card {
    text-align: center;
    transition: transform 0.2s;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-card .card-body {
    padding: 1.5rem;
}

.overview-card h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.overview-card h6 {
    margin: 0 0 0.5rem 0;
    color: rgba(0,0,0,0.6);
}

/* 表格样式优化 */
.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.table-responsive {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* 空气质量标签样式 */
.aqi-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    display: inline-block;
}

.aqi-excellent {
    background-color: #52c41a;
    color: white;
}

.aqi-good {
    background-color: #fadb14;
    color: #333;
}

.aqi-moderate {
    background-color: #fa8c16;
    color: white;
}

.aqi-unhealthy {
    background-color: #f5222d;
    color: white;
}

.aqi-very-unhealthy {
    background-color: #722ed1;
    color: white;
}

.aqi-hazardous {
    background-color: #531dab;
    color: white;
}

/* 搜索表单样式 */
.search-form {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-form .form-group {
    margin-bottom: 0;
}

/* 按钮样式 */
.btn {
    border-radius: 0.25rem;
    padding: 0.375rem 1rem;
}

.btn-group {
    margin-bottom: 1rem;
}

/* 进度条样式 */
.progress {
    height: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* 模态框样式 */
.modal-content {
    border-radius: 0.5rem;
    border: none;
}

.modal-header {
    border-radius: 0.5rem 0.5rem 0 0;
    background-color: #f8f9fa;
}

.modal-footer {
    border-radius: 0 0 0.5rem 0.5rem;
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 测试数据按钮样式 */
.test-data-btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .overview-card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        min-height: 300px;
    }
    
    .search-form {
        padding: 1rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
} 